/**
 * jims
 */
package com.jims.master.modules.drug.entity;

import org.hibernate.validator.constraints.Length;

import com.jims.master.common.persistence.DataEntity;

/**
 * Entity
 * @author 系统管理员
 * @version 2017-03-15
 */
public class DrugDetails extends DataEntity<DrugDetails> {
	
	private static final long serialVersionUID = 1L;
	private String drugCode;		// 药品代码
	private String drugName;		// 药品名称
	private String drugEName;		// 药品英文名称
	private String drugInfoId;		// 药品信息ID
	private String packageSpec;		// 规格
	private String action;		// 药理作用
	private String indication;		// 适用症
	private String dosage;		// 用法用量
	private String form;		// 制剂
	private String pharmacokinetics;		// 药代动力学
	private String adverseReaction;		// 不良反应
	private String attention;		// 注意事项
	private String contraindication;		// 禁忌
	
	public DrugDetails() {
		super();
	}

	public DrugDetails(String id){
		super(id);
	}

	@Length(min=1, max=20, message="药品代码长度必须介于 1 和 20 之间")
	public String getDrugCode() {
		return drugCode;
	}

	public void setDrugCode(String drugCode) {
		this.drugCode = drugCode;
	}
	
	@Length(min=1, max=100, message="药品名称长度必须介于 1 和 100 之间")
	public String getDrugName() {
		return drugName;
	}

	public void setDrugName(String drugName) {
		this.drugName = drugName;
	}
	
	@Length(min=1, max=40, message="药品英文名称长度必须介于 1 和 40 之间")
	public String getDrugEName() {
		return drugEName;
	}

	public void setDrugEName(String drugEName) {
		this.drugEName = drugEName;
	}
	
	@Length(min=0, max=64, message="药品信息ID长度必须介于 0 和 64 之间")
	public String getDrugInfoId() {
		return drugInfoId;
	}

	public void setDrugInfoId(String drugInfoId) {
		this.drugInfoId = drugInfoId;
	}
	
	@Length(min=0, max=20, message="规格长度必须介于 0 和 20 之间")
	public String getPackageSpec() {
		return packageSpec;
	}

	public void setPackageSpec(String packageSpec) {
		this.packageSpec = packageSpec;
	}
	
	@Length(min=0, max=2000, message="药理作用长度必须介于 0 和 2000 之间")
	public String getAction() {
		return action;
	}

	public void setAction(String action) {
		this.action = action;
	}
	
	@Length(min=0, max=2000, message="适用症长度必须介于 0 和 2000 之间")
	public String getIndication() {
		return indication;
	}

	public void setIndication(String indication) {
		this.indication = indication;
	}
	
	@Length(min=0, max=2000, message="用法用量长度必须介于 0 和 2000 之间")
	public String getDosage() {
		return dosage;
	}

	public void setDosage(String dosage) {
		this.dosage = dosage;
	}
	
	@Length(min=0, max=2000, message="制剂长度必须介于 0 和 2000 之间")
	public String getForm() {
		return form;
	}

	public void setForm(String form) {
		this.form = form;
	}
	
	@Length(min=0, max=2000, message="药代动力学长度必须介于 0 和 2000 之间")
	public String getPharmacokinetics() {
		return pharmacokinetics;
	}

	public void setPharmacokinetics(String pharmacokinetics) {
		this.pharmacokinetics = pharmacokinetics;
	}
	
	@Length(min=0, max=2000, message="不良反应长度必须介于 0 和 2000 之间")
	public String getAdverseReaction() {
		return adverseReaction;
	}

	public void setAdverseReaction(String adverseReaction) {
		this.adverseReaction = adverseReaction;
	}
	
	@Length(min=0, max=2000, message="注意事项长度必须介于 0 和 2000 之间")
	public String getAttention() {
		return attention;
	}

	public void setAttention(String attention) {
		this.attention = attention;
	}
	
	@Length(min=0, max=2000, message="禁忌长度必须介于 0 和 2000 之间")
	public String getContraindication() {
		return contraindication;
	}

	public void setContraindication(String contraindication) {
		this.contraindication = contraindication;
	}
	
}